package com.rockwell.robot2015.test;

import java.util.ArrayList;

import com.rockwell.robot2015.model.RobotAction;
import com.rockwell.robot2015.model.command.IRobotCommander;
import com.rockwell.robot2015.model.command.RobotCommand;

import net.wimpi.modbus.ModbusException;

public class DummyRobotCommander implements IRobotCommander {

	ArrayList<RobotAction> actions = new ArrayList<RobotAction>();
	
	@Override
	public void sendCommand(RobotCommand command) {
		actions.add(command.action);
	}

	@Override
	public boolean isConnected() {
		return true;
	}

	@Override
	public boolean isCommandDone() throws ModbusException {
		return true;
	}
	
	public ArrayList<RobotAction> getActions() {
		return actions;
	}

	@Override
	public boolean isJogging() {
		return false;
	}

	@Override
	public void reset() {
	}

	@Override
	public void connect() throws Exception {
	}

	@Override
	public void disconnect() throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean isJogDone() throws ModbusException {
		// TODO Auto-generated method stub
		return false;
	}

}
